package com.huangwei.service.impl;

import com.huangwei.dao.RoleDao;
import com.huangwei.model.Role;
import com.huangwei.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Resource
    RoleDao roleDao;
    @Override
    public List<Role> getAllRoles() {
        try {
            return roleDao.queryAll();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
